package cur.channel.client.model;

import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class Message extends BaseMsg {
    private String message;
    public Message() {
        super();
    }
    public Message(BaseMsg baseMsg) {
        super.setClientId(baseMsg.getClientId());
        super.setGroupId(baseMsg.getGroupId());
        super.setMsgId(baseMsg.getMsgId());
        super.setType(baseMsg.getType());
        this.message = JSON.toJSONString(baseMsg);
    }
}
